package org.hy.persistence.global;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.hy.domain.global.Invitation;
/**
 * 邀请映射器类1.0
 * @author Administrator
 *
 */
public interface InvitationMapper {
	
	Invitation findInvitationById(Integer id);
	
	List<Invitation> findInvitationsByUid(@Param("uid") int uid,@Param("offset")int offset,@Param("size")int size);
	/**
	 * 查没有处理的请求
	 * @param uid
	 * @param offset
	 * @param size
	 * @return
	 */
	List<Invitation> findInvitationsUnHandleByUid(@Param("uid") int uid,@Param("offset")int offset,@Param("size")int size);
	
	int insertInvitation(Invitation invitation);
	
	int deletaInvitation(Integer id);
	
	int updateInvitation(Invitation invitation);
	
	int countInvitation(int uid);
	
	int countInvitationUnHandle(int uid);
}
